package org.openapplet.tomcat.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @BelongsProject: MyWebServer
 * @BelongsPackage: 小村程序员
 * @CreateTime: 2020-06-28 16:25
 * @Description: TODO
 */
public class DateUtil {

    public static String currentTime(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS");
        Date nowTime = new Date();
        String nowTimeStr = dateFormat.format(nowTime);
        return  nowTimeStr;
    }
}
